473,468 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

html image instead of button

4 New Member
how do you subtitute image instead of button

for example: i have this code below:
and it has a defualt button. how do i replace it with a image button.
i dont have a image yet . please help



<form name="font_select" action="GET">
<input
type="button"
onclick="javascript:fontsizedown();"
value=" font - "
/>
<input
type="button"
onclick="javascript:fontsizeup()"
value=" font + "
/>
</form>
Sep 26 '07 #1
4 7065
Death Slaught
1,137 Top Contributor
how do you subtitute image instead of button

for example: i have this code below:
and it has a defualt button. how do i replace it with a image button.
i dont have a image yet . please help



[HTML]<form name="font_select" action="GET">
<input
type="button"
onclick="javascript:fontsizedown();"
value=" font - "
/>
<input
type="button"
onclick="javascript:fontsizeup()"
value=" font + "
/>
</form>[/HTML]
Sup silviasalsa, please use proper code tags when posting code, please read the posting guidelines .

I assume that your wanting to know how to add certain attributes to your image code, like "onblur, onfocus, onclick, onmouseover, onmouseout....etc." just add the attribute to your code like this:

[HTML]<img src="location of image" alt="text to be displayed if image encounters an error" border="0" onclick="alert('text')" />[/HTML]



Hope it helps, Death
Sep 26 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
No, I think he just wants a button image. So:
<button name="submit" value="submit" type="submit"><img src="1.png">

Of course, much more can be done to style that.
Sep 26 '07 #3
anubhavkumar
1 New Member
Hi Silvia,
You can few modifications, as mentioned below, in your code
<input type="IMAGE" value="button" src="<image name>"/>
hope this one will work...revert in case of concerns....till thn happy coding...:)

how do you subtitute image instead of button

for example: i have this code below:
and it has a defualt button. how do i replace it with a image button.
i dont have a image yet . please help



<form name="font_select" action="GET">
<input
type="button"
onclick="javascript:fontsizedown();"
value=" font - "
/>
<input
type="button"
onclick="javascript:fontsizeup()"
value=" font + "
/>
</form>
Oct 1 '07 #4
numberwhun
3,509 Recognized Expert Moderator Specialist
how do you subtitute image instead of button

for example: i have this code below:
and it has a defualt button. how do i replace it with a image button.
i dont have a image yet . please help



<form name="font_select" action="GET">
<input
type="button"
onclick="javascript:fontsizedown();"
value=" font - "
/>
<input
type="button"
onclick="javascript:fontsizeup()"
value=" font + "
/>
</form>
And, for a little light reading on the other options of the input tag, check out this link.

Regards,

Jeff
Oct 1 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
4
by: Ester | last post by:
I have an interior design of a living room with lights and aircond image. My task is to load the living room image without any light and aircond images as background image of a WebForm after that I...
2
by: Ester | last post by:
Instead of drag and drop image button from Toolbox and name the image button id on the properties box, I would like to load image button ID from database. I created a database table that stores...
15
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and...
6
by: ruca | last post by:
Hi gurus, I have a imagebutton in my WebForm, and I want that when I click (mouse down) on her the imagebutton change image and when I "unclick" (mouse up) change to the original image. Basically...
10
by: Mirek Endys | last post by:
Is there a posibility to make web control, that is drawing an image to webpage without needing to save it into a file? (for example, i will save picture into db server and I want to show it...
2
by: jon | last post by:
Hi This might be an easy one to answer but I have a web form in an ASP.NET 1.1 application with a hand-rolled HTML image button as follows which opens a help guide in a new window: <input...
2
by: sono | last post by:
Today I read there is a possibility to write direct Fench characters in HTML. Thus instead of having to write : L'&eacute;l&egrave;ve va &agrave; l'&eacute;cole et ceci est &eacute;crit en...
3
by: Valli | last post by:
Hi, I want to add an image to a html type input button. How can I do this? I have used background image style . But its not working. My target is to show an image in the button can anyone...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.